# 新建一个序列化类

from rest_framework.serializers import ModelSerializer
from app01 import models


class BookModelSerializer(ModelSerializer):
    class Meta:
        model = models.Book
        fields = '__all__'